<include file="Public:header"/>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
    <include file="Public:nav"/>
    <div class="h_a">搜索</div>
    <form method="post" action="{:U('message')}">
        <input type="hidden" value="1" name="search">
        <div class="search_type cc mb10">
            <div class="mb10">
        <span class="mr20">时间：
        <input type="text" name="start_time" class="input length_2 J_date" value="{$Think.get.start_time}" style="width:80px;">-<input type="text" class="input length_2 J_date" name="end_time" value="{$Think.get.end_time}">
        <select class="select_2" name="status"style="width:70px;">
            <option value='2' <if condition=" $status == 2 "> selected</if>>全部</option>
            <option value="1" <if condition=" $status == 1 "> selected</if>>已审核</option>
            <option value="0" <if condition=" $status == 0 "> selected</if>>未审核</option>
        </select>
        <select class="select_2" name="types">
            <option value='0' <if condition=" $types == '0' "> selected</if>>全部栏目</option>
            <option value='1' <if condition=" $types == '1' "> selected</if>>作品</option>
            <option value='2' <if condition=" $types == '2' "> selected</if>>会员</option>
            <option value='3' <if condition=" $types == '3' "> selected</if>>试用报告</option>
            <option value='4' <if condition=" $types == '4' "> selected</if>>随手拍</option>
            <option value='5' <if condition=" $types == '5' "> selected</if>>新闻</option>
            <option value='6' <if condition=" $types == '6' "> selected</if>>活动</option>
        </select>
            <select class="select_3" name="searchtype">
                <option value='1' <if condition=" $searchtype == '1' "> selected</if>>会员名</option>
                <option value='2' <if condition=" $searchtype == '2' "> selected</if>>内容</option>
            </select>
        关键字：
        <input type="text" class="input length_2" name="keyword" style="width:200px;" value="{$_GET.keyword}" placeholder="请输入关键字...">
        <button class="btn">搜索</button>
        </span>
            </div>
        </div>
    </form>
    <form class="J_ajaxForm" action="" method="post">
    <div class="table_user">
        <table width="100%" cellspacing="0">
            <thead>
            <tr>
                <td width="3%"><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></td>
                <td width="5%">审核</td>
                <td width="6%">类别</td>
                <td width="25%">标题</td>
                <td width="10%" align="left" >用户</td>
                <td align="left" >留言</td>
                <td width="15%" align="left" >时间</td>
                <td width="8%">操作</td>
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="vo">
                <tr>
                    <td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="ids[]" value="{$vo.id}"></td>
                    <td>{$vo.status|showStatus}</td>
                    <td>{$vo.type|getMsgType}</td>
                    <td>{$vo.infoid|getMsgTitle=$vo['type'],###}</td>
                    <td>
                    	<if condition="$vo['userid'] eq 0">
                    	<span style="color: #ff8410;">烘焙圈</span>
                    	<else/>
                    	{$vo.userid|getNickName}
                    	</if>
                    </td>
                    <td>{$vo.content}</td>
                    <td>{$vo.create_time|date='Y-m-d H:i',###}</td>
                    <td><a href="/Admins/User/views/id/{$vo.id}#send_{$vo.id}">回复</a>|<a href="{$vo.id|getPageUrl=$vo['type'],$vo['infoid'],###}" target="_blank">详情</a></td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="p10">
            <div class="pages"> {$Page} </div>
        </div>
    </div>
        <div class="btn_wrap">
            <div class="btn_wrap_pd">
                <label class="mr20"><input type="checkbox" class="J_check_all" data-direction="y" data-checklist="J_check_y">全选</label>
                <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('User/message_batch',array('do'=>'checkpass'))}">审核</button>
                <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('User/message_batch',array('do'=>'cancelpass'))}">取消审核</button>
                <button class="btn J_ajax_submit_btn" type="submit" data-msg="确认删除这些留言信息?" data-subcheck="true" data-action="{:U('User/message_deleteAll')}">删除</button>
            </div>
        </div>
    </form>
</div>
<script src="__JS__/common.js"></script>
<script src="__JS__/content_addtop.js"></script>
</body>
</html>